package fun.bigtable.kraken.web.wrapper.config;

import fun.bigtable.kraken.web.wrapper.AbsIdlerBodyWrapper;
import fun.bigtable.kraken.web.wrapper.impl.ResultBodyWrapper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IdlerWrapperConfig {

    @Bean
    @ConditionalOnMissingBean(AbsIdlerBodyWrapper.class)
    public AbsIdlerBodyWrapper resultBodyWrapper() {
        return new ResultBodyWrapper();
    }
} 